Repository navigation
chore: raise initial bundle budget warning to 600kB - #14
Merged
Merged
Conversation
The initial bundle is 526kB (119kB transferred) and exceeded the 512kB warning threshold. Most of it cannot be trimmed: Angular core, router and common take about 340kB, and the Aura preset ships tokens for all 91 Optimus components (133kB) as a single object that is not tree-shakeable. Application code is only 9kB and features are already lazy-loaded. The 1MB error threshold is unchanged. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm buildwarned that the initial bundle (526 kB raw, 119 kB transferred) exceeded the 512 kB budget. This PR raises the warning threshold to 600 kB. The 1 MB error threshold is unchanged.Why not trim the bundle instead
Breakdown of
main.jsfromng build --stats-json:@angular/core@openng/optimus-ui-themes@angular/router@angular/common@openng/optimus-uirxjsprovideOptimus, so it cannot be tree-shaken. A hand-built preset with only the components we use would be fragile: any component we forget to add would render unstyled.Checks
pnpm build: passes with no budget warning🤖 Generated with Claude Code